import React, { Component } from 'react';
import {
  Button,
  Image,
  View,
  Text
} from 'react-native';

export default class MainScreen extends Component {
  static navigationOptions = {
    title: '第一个页面',
  };

  render() {
    const { navigate } = this.props.navigation;
    return (
      <Button
        title="Go to Jane's profile"
        onPress={() =>
          this.props.navigation.navigate('Profile', { name: 'Jane' })
        }
      />
    );
  }
}
